package xzx.mcp.tool;

import lombok.extern.slf4j.Slf4j;
import org.springframework.ai.tool.annotation.Tool;
import org.springframework.stereotype.Component;

/**
 * 拖拉机信息Mcp Server
 * @author xzx
 * @date 2025-10-20 21:52
 */
@Slf4j
@Component
public class VehicleInfoTool {
    @Tool(description = "根据车牌号获取拖拉机信息")
    public String queryVehicleInfoByPlateNo(String plateNo){
        log.info("========== 调用MCP工具：queryVehicleInfoByPlateNo() ==========");
        log.info(String.format("| 参数 plateNo 为： %s", plateNo));
        log.info("========== End ==========");
        //todo 根据车牌号获取拖拉机信息 返回一个json?

        return "大型拖拉机";
    }

}
